﻿using System;
using NUnit.Framework;
using ScrumBox.Model;

namespace ScrumBox.UnitTests.Model
{
    [TestFixture]
    public class TaskTester
    {
        [Test]
        public void CanCreateTask()
        {
            var title = "Create a unit test!! :-)";
            var user = new User("Mick", "Mike.Delaney@uk.tesco.com");
            var estimatedHours = 8;
            var startDate = DateTime.Now;
            var sprintBackLogItem = new SprintBackLogItem();

            var task = new Task(title, user, estimatedHours, startDate, sprintBackLogItem);
            
            Assert.That(task.Title == title);
            Assert.That(task.User == user);
            Assert.That(task.EstimatedHours == estimatedHours);
            Assert.That(task.StartDate == startDate);
            Assert.That(task.SprintBackLogItem == sprintBackLogItem);
        }
    }
}